//
//  ViewController.m
//  JingleSpeedLoan
//
//  Created by 宋质彬 on 2018/6/19.
//  Copyright © 2018年 宋质彬. All rights reserved.
//

#import "ViewController.h"
#import "DSNetWorkStatus.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    [self createView];
}
-(void)createView{
    
    
    
    NSString *imageName = nil;
    if (iPhone4) {
        imageName = @"start-640x960";
    }else if (iPhone5) {
        imageName = @"start-640x1136";
    }else if (iphone6) {
        imageName = @"start-750x1334";
    }else if(iphone6Plus){
        imageName = @"start-1242x2208";
    }else if (iPhoneX){
        imageName = @"start-1125x2436";
    }
    UIImage * img = [UIImage imageNamed:imageName];
    if (!img) {
        img = [UIImage imageNamed:@"start-1125x2436"];
    }
    UIImageView *iv = [[UIImageView alloc] initWithFrame:CGRectMake(0 , 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    iv.image = img;
    [self.view addSubview:iv];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
